LIBS_INCS_ROOT := libs/h
LIBS_SRCS_ROOT := libs/src

LIBSAPI_SRCS := $(LIBS_SRCS_ROOT)/libapi
LIBSC_SRCS := $(LIBS_SRCS_ROOT)/libc

LIBS_ALL_INCS := $(LIBS_INCS_ROOT)
LIBS_ALL_SRCS := $(LIBSAPI_SRCS) \
				$(LIBSC_SRCS)

INC_DIRS := $(LIBS_ALL_INCS)
SRC_DIRS := $(LIBS_ALL_SRCS)

H_FILES := $(patsubst %, -I %, $(INC_DIRS))
S_FILES := $(SRC_DIRS)
C_FILES := $(SRC_DIRS)

CCBUILD_PATH = $(S_FILES) $(C_FILES)
HEADFILE_PATH = $(H_FILES)

include buildcmd.mki
include buildobjs.mki

# 目标依赖关系
.PHONY : all everything build_bsp

all : build_bsp
build_bsp : everything
everything : $(BUILD_MK_LIBS_OBJS)

include buildrule.mki